package com.bgrconsulting.stockorderentry.service.converter;

import com.bgrconsulting.stockorderentry.service.model.request.EquityOrderRequest;

import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlElement;

@XmlRootElement(name = "EquityOrderRequest")
public class EquityOrderRequestConverter {
private EquityOrderRequest enity;
	
	public EquityOrderRequestConverter(EquityOrderRequest equityOrderRequest) {
		enity = equityOrderRequest;
	}
	
	public EquityOrderRequestConverter() {
		enity = new EquityOrderRequest();
	}
	
	@XmlElement(name = "accountId")
    public String getAccountId() {
    	return enity.getAccountId();
    }
	
	@XmlElement(name = "orderAction")
    public String getOrderAction() {
    	return enity.getOrderAction();
    }
    
	@XmlElement(name = "symbol")
    public String getSymbol() {
    	return enity.getSymbol();
    }
    
	@XmlElement(name = "clientOrderId")
    public String getClientOrderId() {
    	return enity.getClientOrderId();
    }
    
	@XmlElement(name = "limitPrice")
    public Double getLimitPrice() {
    	return enity.getLimitPrice();
    }
    
	@XmlElement(name = "stopPrice")
	public Double getStopPrice() {
    	return enity.getStopPrice();
    }
 
	@XmlElement(name = "allOrNone")
	public boolean getAllOrNone() {
    	return enity.getAllOrNone();
    }
    
    
	@XmlElement(name = "quanity")
    public int getQuanity() {
    	return enity.getQuanity();
    }
	
	@XmlElement(name = "priceType")
    public String getPriceType() {
    	return enity.getPriceType();
    }
    
	@XmlElement(name = "marketSession")
	public String getMarketSession() {
    	return enity.getMarketSession();
    }
    
	@XmlElement(name = "orderTerm")
	public String getOrderTerm() {
    	return enity.getOrderTerm();
    }
    
	@XmlElement(name = "routingDestination")
	public String getRoutingDestinatin() {
    	return enity.getRoutingDestination();
    }
}
